package com.lb.mytest;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * @version 1.0
 * @Author: Edward
 * @Date: 2021/12/23 11:38
 * @Description:
 */
public class ArrayTest {
    public static void main(String[] args) {
        String[] a = {"1", "2"};
        String[] b = {"3", "4"};
        Set<String> seta = new HashSet<String>(Arrays.asList(a));
        Set<String> setb = new HashSet<String>(Arrays.asList(b));

        seta.removeAll(setb);
        System.out.println(seta);

//        setb.removeAll(seta);
//        System.out.println(setb);

    }
}
